using System.Linq;


namespace Wayloop.Blog.Core.Data
{
    public interface IRepository<TEntity>
    {
        TEntity Find(int id);
        IQueryable<TEntity> FindAll();
        IQueryable<TEntity> FindAll(int pageIndex, int pageSize);
        void Save(TEntity entity);
        void Delete(TEntity entity);
        void Refresh(TEntity entity);
    }
}